package com.xiaotu.code.dao.person;

import org.springframework.stereotype.Repository;

import com.xiaotu.code.dao.HibernateDao;
import com.xiaotu.code.model.person.Psn;
import com.xiaotu.code.system.DaoException;

@Repository(value="psnDao")
public class PsnDao extends HibernateDao<Psn, Long> {

	public Psn findPsnByName(String name) throws DaoException {
		String querysql = "from Psn where name=?";
		return super.findUnique(querysql, name);
	}
}
